package com;

public abstract class Cat extends Animals implements Eatable,Activity {

    @Override
    public void action() {
        System.out.println("喵喵叫");
    }


    public void food(int fish) {
        if (fish == 2) {
            System.out.println("猫吃鱼");
        } else {
            System.out.println("猫不吃食物");
        }
    }


    }

